CC = g++
LD = g++
prog = apriori
SRC = \
apriori.h \
dataset.cpp \
dataset.h \
file_reader.cpp \
file_reader.h \
itemset_container.h \
itemset.h \
main.cpp
OBJ = \
dataset.o \
file_reader.o \
main.o 

LDFLAGS =
CFLAGS = -g -Wall -fPIC -DPIC -fvar-tracking  

all: $(prog)

${prog}: $(OBJ)
	$(LD) $(LDFLAGS) $(OBJ) -o $(prog)

%.o: %.cpp
	$(CC) $(CFLAGS) -c $< -o $@

clean:
	rm $(OBJ)
	rm $(prog)

run:
	./$(prog)
